﻿//顺序跳转页面
//下一页面cookie
function GoToNewPage(newcount) {
    newcount = newcount + 1;
    if (newcount < 30) {
        $.cookie("NewdayPage", newcount);
    }
    else {
        $.cookie("NewdayPage", 0);
    }
}

function GoToPage(indexs) {
    var cookies = $.cookie("NewdayPage");
    if (cookies != null && cookies > 0) {
        if (cookies > indexs) {
            window.location.href = "ep_newday" + cookies + ".htm";
        }
        else {
            $.cookie("DpMinWebWndSize", "");
            GoToNewPage(indexs);
        }
    }
    else {
        $.cookie("DpMinWebWndSize", "");
        GoToNewPage(indexs);
    }
}
